//
// Created by Administrator on 2024/5/10.
//

#include "Convert.h"
#include "cimport.h"
#include "cexport.h"

#ifdef __cplusplus
extern "C" {
#endif




int convert(const char *input_file_name, const char *out_put_file_name, const char *format_id) {
    auto scene = aiImportFile(input_file_name, 0);
    return aiExportScene(scene, format_id, out_put_file_name, 0);
}




#ifdef __cplusplus
}
#endif